package com.bdqn.t330.ch07.controller;


import com.bdqn.t330.ch07.entity.Role;
import com.bdqn.t330.ch07.servcie.RoleService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
@RequestMapping("/role")
public class RoleController {

    @Resource
    RoleService roleService;

    @RequestMapping("/getrolelist")
    @ResponseBody
    public Object getRoleList() {
        return roleService.getRoleList();
    }
}
